package com.kuaimacode.kframework.mybatis.mapper.user;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kuaimacode.kframework.mybatis.models.user.Address;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressMapper extends BaseMapper<Address> {
	
	

	/**
	 * 根据用户Id查询
	 *
	 * @param userId 用户Id
	 * @return
	 */
	//List<Address> getAddressList(@Param("userId") Long userId);

	/**
	 * 获取最后插入的id
	 * @return
	 */
	Long getLastInsertId();


	List<Address> queryAddressList(@Param("address") Address address);


	Address getAddressById(String id);

}